package demo;

public class Student1 extends Classroom {

    //静态代码块
    static {
        System.out.println("子类静态代码块被调用");
    }

    //实例代码块
    {
        System.out.println("子类实例代码块被调用");
    }

    public Student1(String name, int age, int id) {
        super(name,age,id);
        System.out.println("子类构造方法被调用");
    }

}
